import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // 读取输入字符串
        String s = scanner.nextLine();
        scanner.close();

        // 使用 StringBuilder 进行翻转
        String reversed = new StringBuilder(s).reverse().toString();

        // 输出翻转后的字符串
        System.out.println(reversed);
    }
}
